//
//  AButtonTableViewCell.m
//  BigToBig
//
//  Created by 毛丽媛 on 16/8/4.
//  Copyright © 2016年 cn.cloudtp. All rights reserved.
//

#import "AButtonTableViewCell.h"

@implementation AButtonTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubViews];
    }
    return self;
}

- (void)createSubViews{
    self.sureBtn = [[UIButton alloc] init];
    self.sureBtn.backgroundColor = COLOR_RGBA(70, 214, 147, 1);
    
    self.sureBtn.layer.cornerRadius = 5;
    [self.contentView addSubview:self.sureBtn];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.sureBtn.frame = CGRectMake(kScreenWidth / 2 - 90, 15, 180, self.contentView.frame.size.height - 30);
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
